#include <stdio.h>
int Cat(const char *path)
{
	FILE * fp = fopen(path,"r");
	if(NULL == fp)
	{
		perror("fopen");
		return 1;
	}
	char buf[512] = {0};
	while(1)
	{
		fgets(buf , 512 , fp);
		if(feof(fp))
		{
			break;
		}
		printf("%s",buf);
	}
	fclose(fp);
	return 0;
}
